import { createRouter, createWebHashHistory } from 'vue-router';
import Login from '@/pages/Login';
import Layout from '@/pages/layout/index.vue';
const routes = [
  { path: '/login', name: 'login', component: Login },

  { path: '/', redirect: '/home', name: 'entry', component: Layout, children: [
    { path: '/home', name: 'home', component: () => import(/* webpackChunkName: "home" */'@/pages/Home') },
    { path: '/sys/password', name: 'system', redirect: '/sys/password', component: () => import(/*system*/ '@/pages/system'), children: [
      { path: '/sys/password', name: 'password', component: () => import(/* webpackChunkName: "password" */'@/pages/system/password') },
      { path: '/sys/user', name: 'user', component: () => import(/* webpackChunkName: "user" */'@/pages/system/user') },
      { path: '/sys/role', name: 'role', component: () => import(/* webpackChunkName: "role" */'@/pages/system/role') },
      { path: '/sys/menu', name: 'menu', component: () => import(/* webpackChunkName: "menu" */'@/pages/system/menu') },
    ] },
    { path: '/tempContent/tempFile', redirect: '/tempContent/tempFile', name: 'tempContent', component: () => import(/* webpackChunkName: "tempContent" */'@/pages/tempContent'), children: [
      { path: '/tempContent/tempFile', name: 'tempFile', component: () => import(/* webpackChunkName: "tempFile" */'@/pages/tempContent/tempFile/index.vue') },
      { path: '/tempContent/displayCounter', name: 'displayCounter', component: () => import(/* webpackChunkName: "displayCounter" */'@/pages/tempContent/displayCounter/index.vue') }
    ] }
  ] },

];

export default createRouter({
  history: createWebHashHistory(),
  routes
});